#include "aed_soundcomp.h"

AED_SoundComp::AED_SoundComp()
{
    m_enabled = false;
}

AED_SoundComp& AED_SoundComp::operator =(const AED_SoundComp &comp){
    m_enabled = comp.m_enabled;
    return *this;
}

bool AED_SoundComp::IsEnabled(){
    return m_enabled;
}

void AED_SoundComp::SetEnabled(bool enabled){
    m_enabled = enabled;
}

void AED_SoundComp::Save(QDomDocument &doc, QDomElement &pelem){
    if(!m_enabled)
        return;
    QDomElement elem = doc.createElement("component");
    elem.setAttribute("comptype","Sound");
    pelem.appendChild(elem);
}

void AED_SoundComp::Load(QDomElement &celem){
    m_enabled = true;
}
